package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @ClassName: DateCondition
 * @Description:
 * @author: GongDaCheng
 * @Date: 17:35 2021/10/8
 */
@Data
@ApiModel(value = "AppealCondition",description = "诉求查询条件对象")
public class DateCondition implements Serializable {
    private static final long serialVersionUID = -238813951372322895L;

    @ApiModelProperty(value = "开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @ApiModelProperty(value = "结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "page",required = true)
    private int page;

    @ApiModelProperty(value = "size",required = true)
    private int size;
}
